package com.bw.Service;

import com.bw.bean.Emp;
import com.bw.mapper.EmpMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
 * @BelongsProject: lianxi07
 * @BelongsPackage: com.bw.Service
 * @Author: wuxiaopeng
 * @CreateTime: 2024-10-07  13:35
 * @Description: TODO
 * @Version: 1.0
 */
@Service
public class EmpServiceImpl implements EmpService {
    @Autowired
    EmpMapper empMapper;

    @Override
    public List<Emp> getlist() {
        return empMapper.getlist();
    }

    @Override
    public List<Emp> getlist2(String ename, String phone) {
        return empMapper.getlist2(ename,phone);
    }

    @Override
    @Transactional
    public int add(Emp emp) {
        return empMapper.add(emp);
    }

    @Override
    @Transactional
    public int adds(List<Emp> emp) {
        return empMapper.adds(emp);
    }

    @Override
    @Transactional
    public int addss(List<Emp> emp) {
        return empMapper.addss(emp);
    }

    @Override
    @Transactional
    public int del(int eid) {
        return empMapper.del(eid);
    }

    @Override
    @Transactional
    public int dels(Integer[] eid) {
        return empMapper.dels(eid);
    }
}
